package com.itheima.dao;

import com.itheima.domain.Product;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Package: com.itheima.dao
 * @ClassName: ProductDao
 * @Author: 王林磊
 * @CreateTime: 2021/9/27 20:15
 * @Description:
 */
public interface ProductDao {
    //添加
    void save(Product product);

    //删除
    void delete(String [] strings);

    //修改
    void update(Product product);

    //查看数据
    Product findById(String id);

    //查看所有
    List<Product> findAll(Product product);

    List<String> findCity();

    void updateStatus(@Param("id") String id,@Param("productStatus")int productStatus);
}
